package com.zgm.ch04.applicationContext.i18n._9_5_2_2;

public class ErrorReport {

	public void evaluate(double[] values) {
		if(values.length % 2 != 0){
//			throw new SourceDateInvalidException("@Lcom.zgm.ch04.applicationContext.i18n._9_5_2_2.SourceDateInvalidException", values.length);
			throw new SourceDateInvalidException("@Lcom.zgm.ch04.applicationContext.i18n._9_5_2_2.SourceDateInvalidException", values.length);
		}
		
		for(int i = 0; i < values.length; i++){
			double value = values[i];
			
			if(value < 0){
				throw new ArgumentDomainException("@Lcom.zgm.ch04.applicationContext.i18n._9_5_2_2.ArgumentDomainException", value );
			}
			
			Math.log(value);
		}
	}
}
